<!DOCTYPE html>
<html>
    <head>
        <?php echo meta('Content-type', 'text/html; charset=' . config_item('charset'), 'equiv'); ?>
        <title><?= $template['title']; ?></title>
        <?= $template['metadata']; ?>
        
        <link rel="shortcut icon" href="<?= base_url(); ?>assets/images/favicon.gif" />
        <link rel="pingback" href="<?= base_url(); ?>xmlrpc" />
        <link rel="shortcut icon" href="<?= base_url(); ?>assets/images/favicon.gif" />
        <link rel="pingback" href="<?= base_url(); ?>xmlrpc.php" />
        <meta name="viewport" content="width=device-width, initial-scale=1.0" />


        <?= $template['metadata']; ?>

        <?php Assets::css(array('default/style.css')); ?>
        <?php
        Assets::js(array(
            'jquery-1.7.1.min.js',
            'superfish.js',
            'FF-cash.js',
            'tabs.js',
            'easyTooltip.js',
            'jquery.jqtransform.js',
            'car.js',
        ));
        ?>
        <link rel="stylesheet" href="<?= base_url(); ?>third_party/fbox/source/jquery.fancybox.css" type="text/css" media="screen" />
        <script src="<?= base_url(); ?>third_party/fbox/source/jquery.fancybox.pack.js"></script>
        <script src="<?= base_url(); ?>third_party/fbox/source/helpers/jquery.fancybox-media.js"></script>

        <script>
    
            $('.fancybox').fancybox();
    
            $(document).ready(function() {
                $('.fancybox').fancybox({
                    padding : 5,
                    openEffect  : 'elastic'
            
                });
       
            });
            $(document).ready(function() {
                $('.contact_seller').fancybox({
                    padding : 0,
                    openEffect  : 'none'
            
                });
       
            });
    		
            /*
             *  Media helper. Group items, disable animations, hide arrows, enable media and button helpers.
             */
            $('.fancybox-media')
            .attr('rel', 'media-gallery')
            .fancybox({
                openEffect : 'none',
                closeEffect : 'none',
                prevEffect : 'none',
                nextEffect : 'none',
                'width'			: 640,
                'height'		: 385,

                arrows : false,
                helpers : {
                    media : {},
                    buttons : {}
                }
            });
                                
                                
        </script>


        <script type="text/javascript">
            $(function(){
                $("a.tooltips").easyTooltip();
            });
        </script>

        <!--[if lt IE 7]>
                   <div style=' clear: both; text-align:center; position: relative;'>
                         <a href="http://windows.microsoft.com/en-US/internet-explorer/products/ie/home?ocid=ie6_countdown_bannercode">
                           <img src="http://storage.ie6countdown.com/assets/100/images/banners/warning_bar_0000_us.jpg" border="0" height="42" width="820" alt="You are using an outdated browser. For a faster, safer browsing experience, upgrade for free today." />
                        </a>
                  </div>
                <![endif]-->
        <!--[if lt IE 9]>
                    <script type="text/javascript" src="js/html5.js"></script>
            <link rel="stylesheet" type="text/css" media="screen" href="css/ie.css">
        <![endif]-->
    </head>
    <body>


        <div class="main">

            <header>
                <?php
                if (isset($template['partials']['header']))
                    echo $template['partials']['header'];
                ?>
            </header>

            <section id="content">
                <div class="container_12">
                    <div class="wrapper marg_bottom_1">
                        <?php
                        if (isset($template['partials']['register']))
                            echo $template['partials']['register'];
                        ?>

                        <?php
                        if (isset($template['partials']['login']))
                            echo $template['partials']['login'];
                        ?>

                        <?php
                        if (isset($template['partials']['find_old']))
                            echo $template['partials']['find_old'];
                        ?>


                        <?php
                        if (isset($template['partials']['featured']))
                            echo $template['partials']['featured'];
                        ?>

                    </div> 

                    <div class="wrapper">
                        <div class="grid_9">
                            <?php
                            if (isset($template['partials']['dealer']))
                                echo $template['partials']['dealer'];
                            ?>
                            <?php
                            if (isset($template['partials']['recent']))
                                echo $template['partials']['recent'];
                            ?>

                            <!-- CONTENT AREA -----> 
                            <?php echo $template['body']; ?>

                            <!-- END OF CONTENT AREA -------->


                        </div>
                        <!--Right Side Part -->
                        <div class="grid_3 right_side">
                            <?php
                            if (isset($template['partials']['customer_care']))
                                echo $template['partials']['customer_care'];
                            ?>

                            <?php
                            if (isset($template['partials']['socialshare']))
                                echo $template['partials']['socialshare'];
                            ?>

                            <?php
                            if (isset($template['partials']['search_reviews']))
                                echo $template['partials']['search_reviews'];
                            ?>

                            <?php
                            if (isset($template['partials']['recent_news']))
                                echo $template['partials']['recent_news'];
                            ?>

                            <?php
                            if (isset($template['partials']['recent_reviews']))
                                echo $template['partials']['recent_reviews'];
                            ?>


                        </div>
                    </div> 
                </div>
            </section> <!-- Content Section end here --->

            <footer>
                <?php
                if (isset($template['partials']['footer']))
                    echo $template['partials']['footer'];
                ?>
            </footer>
        </div> <!-- Main End Here -->		
    </body>
</html>